﻿<navigation:Page x:Class="OpalisConsole.Views.Administration.UserImpersonation" 
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="UserImpersonation Page">
    <Grid x:Name="LayoutRoot" MinWidth="0" MaxWidth="1024">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="600*" />
        </Grid.ColumnDefinitions>
        <Border BorderBrush="Silver" BorderThickness="1" Grid.RowSpan="4" Grid.ColumnSpan="3" Name="border1">
        </Border>
        <TextBlock Grid.ColumnSpan="3" Name="txtLandingHeader" Text="" TextAlignment="Center" FontSize="20" Margin="10,50,10,5" />
        <StackPanel Grid.Row="1" Name="panelLandingNav" Margin="10,10,10,0" Background="#FF484848" Height="Auto" VerticalAlignment="Top">
            <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}"
                                     NavigateUri="/Administration/UserManagement" TargetName="ContentFrame" Content="User Management" Background="#FF0097FC" MinWidth="78" />
            <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}"
                                     NavigateUri="/Administration/PendingApproval" TargetName="ContentFrame" Content="Pending Approval" Background="#FF0097FC" MinWidth="78"/>
            <HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}"
                                     NavigateUri="/Administration/UserImpersonation" TargetName="ContentFrame" Content="User Impersonation" Background="#FF0097FC" MinWidth="78"  Foreground="#FF0097FC" />
        </StackPanel>
        
        <controlsToolkit:BusyIndicator Name="busyIndicatorUserManagement" IsBusy="False" Grid.Row="1" Grid.Column="1">
            <StackPanel Margin="10" Orientation="Horizontal">
                <StackPanel Orientation="Vertical" Margin="20">
                <TextBlock Text="Current User:" Margin="0,12,0,13"/>
                <TextBlock Text="Current Machine:" />
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="20">
                    <TextBox Name="boxUserName" Width="200" Margin="0,5,0,5" />
                    <TextBox Name="boxMachine" Width="200" Margin="0,5,0,5" />
                </StackPanel>
                <Button Name="btnChangeCurrentUser" Content="Change User" Height="30" Width="85" Click="btnChangeCurrentUser_Click" />
            </StackPanel>
        </controlsToolkit:BusyIndicator>
    </Grid>
</navigation:Page>